package api

import (
	"net/http"

	"gitee.com/Yu-eng/Myproject/my-go-blog/common"
)

func (*Api) Login(w http.ResponseWriter, r *http.Request) {
	//已经够将登录成功的逻辑进行封装
	//这里根据用户登录所输入的信息进行处理
	params := common.GetRequestJsonParam(r)
	userName := params["username"]
	passwd := params["passwd"]
	LoginRes := service.Login(userName, passwd)

	common.Success()
}
